﻿<Window x:Class="Pujcovna.Loading.Loading"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Loading" Height="600" Width="800" WindowStyle="None" WindowStartupLocation="CenterScreen"
        AllowsTransparency="True" Background="{x:Null}" Foreground="Black" Loaded="Loading_Loaded_1" ResizeMode="NoResize" ShowInTaskbar="False">
    <Window.Resources>
        <Storyboard x:Key="showMe">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:0.2" From="0" To="1"/>
        </Storyboard>

        <Storyboard x:Key="showStatus">
            <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="txtLoading">
                <EasingThicknessKeyFrame KeyTime="0:0:0" Value="0,0,0,0"/>
                <EasingThicknessKeyFrame KeyTime="0:0:0.5" Value="0,0,0,50"/>
            </ThicknessAnimationUsingKeyFrames>
        </Storyboard>

        <Storyboard x:Key="HideStatus">
            <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="txtLoading">
                <EasingThicknessKeyFrame KeyTime="0:0:0" Value="0,0,0,50"/>
                <EasingThicknessKeyFrame KeyTime="0:0:0.5" Value="0,0,0,110"/>
            </ThicknessAnimationUsingKeyFrames>
        </Storyboard>   
    </Window.Resources>

        <Grid x:Name="gridd" OpacityMask="Black" Opacity="1">

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="17*"/>
        </Grid.ColumnDefinitions>
        <Grid.Background>
            <ImageBrush ImageSource="..\Resources\nacitani.png" />
        </Grid.Background>
            
            
            
        <Label Content="Načítání..." FontSize="20" Height="37" HorizontalAlignment="Center" Margin="346,425,326,0" Name="label1" VerticalAlignment="Top" Foreground="White" Width="128" />
        <Label Content="Příkazový řádek Ctrl + P" HorizontalAlignment="Left" Margin="2,536,0,36" Name="label2" VerticalAlignment="Stretch" Foreground="White" Width="136" Grid.Column="1" />
        <Grid VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Height="110" Background="#00FFFFFF" Margin="10,0,14,49">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="374*"/>
                <ColumnDefinition Width="121*"/>
                <ColumnDefinition Width="281*"/>
            </Grid.ColumnDefinitions>
            <Grid.OpacityMask>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#00000000" Offset="0.283"/>
                    <GradientStop Color="#00000000" Offset="0.778"/>
                    <GradientStop Color="White" Offset="0.491"/>
                </LinearGradientBrush>
            </Grid.OpacityMask>
            <TextBlock x:Name="txtLoading" TextAlignment="Center" FontSize="16" FontWeight="Normal"  Foreground="White"  Text=""  TextWrapping="Wrap" VerticalAlignment="Bottom" Margin="0,0,0,49" Grid.ColumnSpan="2" HorizontalAlignment="Right" Width="238" Height="21" >
                <TextBlock.Effect>
                    <DropShadowEffect BlurRadius="6" Color="#FF797979" Direction="201" Opacity="0.68" ShadowDepth="3" />
                </TextBlock.Effect>
            </TextBlock>
        </Grid>
        
        
        </Grid>
</Window>

